package com.shareach.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.RedirectView;

@Controller("home")
public class HomeController extends BaseController {

	@RequestMapping(value = "/")
	public ModelAndView index(HttpServletRequest request) {
		return new ModelAndView(new RedirectView(request.getContextPath() + "/home.htm"));
	}

	@RequestMapping(value = "/login.htm")
	public ModelAndView login() {
		return new ModelAndView("admin/login");
	}

	@RequestMapping(value = "/home.htm")
	public ModelAndView home() {
		return new ModelAndView("admin/home");
	}

}
